{% if errors is defined %}
	<div class="alert alert-error">
    	<ul>
    		{% for error in errors %}
				{% if error|length > 0 %}
					{% for err in error %}					
						<li>{{ err }}</li>
					{% endfor %}
				{% endif %}
    		{% endfor %}
    	</ul>
	</div>
{% endif %}

{% if errorsValidate is defined %}
	<div class="alert alert-error">
    	<ul class="ul_error">
    		{% for error in errorsValidate %}
				<li>{{ error.message }}</li>
    		{% endfor %}
    	</ul>
	</div>
{% endif %}

{% if msg_erro is defined %}
	<div class="alert alert-warning">		
    	<i class="glyphicon glyphicon-info-sign"></i> {{ msg_erro }}
	</div>
{% endif %}

{% for flashMessage in app.session.flashbag.get('msg_erro') %}
	<div class="alert alert-warning">		
    	<i class="glyphicon glyphicon-info-sign"></i> {{ flashMessage }}
	</div>
{% endfor %}

{% for flashMessage in app.session.flashbag.get('msg_sucesso') %}
	<div class="alert alert-success">		
    	<i class="glyphicon glyphicon-ok-sign"></i> {{ flashMessage }}
	</div>
{% endfor %}
